from django.db import models
from django.contrib.auth.models import AbstractUser


class User(AbstractUser):
    """自定义用户模型"""

    mobile = models.CharField(max_length=11, unique=True, null=True, verbose_name="手机号")
    # openid = models.CharField(max_length=128, unique=True, verbose_name="小程序用户唯一标识")

    class Meta:  # 配置数据表明及admin中显示的模型名称
        db_table = "tb_users"
        verbose_name = "用户"
        verbose_name_plural = verbose_name
